package com.ruoyi.web.controller.ToolController;


import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.web.controller.common.UrlCommon;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Api(tags = "微信相关")
@Controller
@RequestMapping("/tool/wx")
@ResponseBody
public class WXController {

//    @GetMapping("video/remove/watermark")
//    @ApiOperation("微信刷步数通过 Zepp Life")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "user", value = "Zeep Life账号"),
//            @ApiImplicitParam(name = "password", value = "Zeep Life密码"),
//            @ApiImplicitParam(name = "step", value = "需要刷的步数 5w 以内,否则容易封号")
//    })
//    public R videoRemoveWatermark(@RequestParam String user, @RequestParam String password, @RequestParam String step) {
//        String path = "?user=" + user + "&password=" + password + "&step=" + step;
//        String s = HttpUtil.get(UrlCommon.WX_STEP_NUMBER + path);
//        if (UrlCommon.isCode(s)) {
//            return R.ok();
//        } else {
//            return R.fail("设置失败!");
//        }
//    }

}
